package com.hb.core.pojo.project.opening.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hb.core.pojo.project.opening.dto.OpeningBidTenderDTO;
import com.hb.core.pojo.project.opening.dto.OpeningBidTenderRecordDTO;
import com.hb.core.pojo.project.opening.entity.OpeningBidTender;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 开标大厅供应商记录表
 *
 * @author lixiang
 * @date 2021-11-24 10:38:32
 */
@Mapper
public interface OpeningBidTenderMapper extends BaseMapper<OpeningBidTender> {

    /**
     * 获取开标大厅实时操作记录数据
     *           根据当前登录用户，判断用户角色属于招标方还是投标方，返回不同的记录。
     *           招标方返回所有记录，投标方返回自己操作记录。
     *
     * @param openingBidTender
     * @return
     */
    List<OpeningBidTenderRecordDTO> listTenderRecord(@Param("openingBidTender") OpeningBidTender openingBidTender);

    /**
     * 获取开标大厅投标方状态数据
     *
     * @param openingBidTender
     * @return
     */
    List<OpeningBidTenderDTO> listBidOpeningTender(@Param("openingBidTender") OpeningBidTender openingBidTender);


    /**
     * Description: 根据标段id获取该标段下的投标人名称（二轮报价处使用）
     * @author: fengbin
     * @date: 2022/2/24 10:32
     * @param sectionId
     @return: java.util.List<java.lang.Long>
     */
    List<String> listBidderNameBySectionId(@Param("sectionId")Long sectionId);
}
